<!-- INCLUDE ucp_header.html -->

<script type="text/javascript">
// <![CDATA[

/**
* Mark/unmark checkboxes
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');

	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

// ]]>
</script>

<form id="ucp" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}>
<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<th colspan="2" valign="middle">{L_TITLE}</th>
	</tr>
	<!-- IF ERROR -->
	<tr>
		<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	</tr>
	<!-- ENDIF -->
	<!-- IF S_SET_RTRACK -->
	<tr>
		<td class="row3" colspan="2"><span>{L_ZONE_RTRACK_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row1"><b>{L_ZONE_RTRACK_URL}</b></td>
		<td class="row2"><b>{L_DELETE}</b> [<a href="#" onclick="marklist('ucp', 'rtrack_delete', true); return false;">+</a>/<a href="#" onclick="marklist('ucp', 'rtrack_delete', false); return false;">-</a>]</td>
	</tr>
	<!-- BEGIN rtracks -->
	<!-- IF rtracks.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
		<td><input type="text" class="post" name="rtrack_url[{rtracks.COUNT}]" size="40" value="{rtracks.URL}" title="" /></td>
		<td>
			<!-- IF rtracks.URL -->
			<input type="checkbox" name="rtrack_delete[{rtracks.COUNT}]" value="1" />
			<!-- ELSE -->
			<b>{L_ADD}</b>
			<!-- ENDIF -->
		</td>
	</tr>
	<!-- END rtracks -->
	<!-- ELSE -->
	<tr>
		<td colspan="2"><span class="gensmall error">{L_RTRACK_DISABLED}</span>
		</td>
	</tr>
	<!-- ENDIF -->
	<!-- IF S_SET_RTRACK -->
	<tr>
		<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELD}{S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" name="reset" class="button2" />&nbsp;
	<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
	{S_FORM_TOKEN}</td>
	</tr>
	<!-- ENDIF -->
</table>
</form>
<!-- INCLUDE ucp_footer.html -->
